package com.mcp.converter.infrastructure.config;

import com.mcp.converter.facade.McpToolsFacade;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * MCP工具配置
 * 
 * @author zengxiong
 * @since 2025/05/20 11:08
 */
@Component
public class ToolConfig {
    
    @Bean
    public ToolCallbackProvider myTools(McpToolsFacade mcpToolsFacade) {
        return MethodToolCallbackProvider.builder().toolObjects(mcpToolsFacade).build();
    }
}
